<?php $form=$this->beginWidget('bootstrap.widgets.TbActiveForm',array(
	'id'=>'view-monitoring-form',
	'enableAjaxValidation'=>true,
)); ?>
<?php echo Yii::t('view', '<p class="help-block">Fields with <span class="required">*</span> are required.</p>');?>

<?php echo $form->errorSummary($model); ?>

		<?php 
                echo $form->dateRangeRow($model,
                            'created',
                            array(
                                'htmlOptions' => array(
                                    'callback' => 'js:function(start, end){console.log(start.toString("MMMM d, yyyy") + " - " + end.toString("MMMM d, yyyy"));}',
                                    'class' => 'col-sm-5',
                                ),
                            )
                    ); 
                ?>
                <?php  
                echo $form->radioButtonListRow($model, 'statusMobil', 
                                                                    array(
                                                                        'Bongkar'=>'Bongkar',
                                                                        'Muat'=>'Muat')
                        );
                ?>
                <?php
                    $list = array('pdf' => 'PDF', 'excel2007' => 'EXCEL');
                    echo $form->select2Row($model, 'exportTo', array('data' => $list), array('class' => 'span5'));
                ?>
<div class="form-actions">
	<?php $this->widget('bootstrap.widgets.TbButton', array(
			'buttonType'=>'submit',
			'type'=>'primary',
			'label'=>'Export',
		)); ?>
</div>      
        
<?php $this->endWidget(); ?>